package net.dopan.pigframe.demo.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.*;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("user_concern_user")
public class UserConcernUser extends Model<UserConcernUser> {
  @TableId(value = "user_id", type = IdType.INPUT)
  private long userId;
  @TableId(value = "concern_user_id", type = IdType.INPUT)
  private long concernUserId;

  @Override
  protected Serializable pkVal() {
    return this.userId;
  }
}
